/**
 * Copyright 2009-2011 xiaonei.com All right reserved.
 * This software is the confidential and proprietary information of Xiaonei.com ("Confidential Information"). 
 * You shall not disclose such Confidential Information and shall use it only in accordance with the terms of the license agreement you entered into with Xiaonei.com.
 * Create by XiaoNeiAntiSpamTeam
 *
 */

package com.xiaonei.testice.util.consistenthash;

/**
 * @ClassName: HashFunction
 * @Description: hash函数
 * @author shaohui.liu shaohui.liu@opi-corp.com
 * @date Mar 16, 2010 3:07:22 PM
 * 
 */
public interface HashFunction {

    /**
     * 
     * @Title: hash
     * @Description: TODO
     * @param @param key
     * @param @return
     * @return int
     * @throws
     */
    int hash(Object key);
}
